//
//  DMMineFirstCell.m
//  DistributionMall
//
//  Created by JHnoplan on 2018/10/14.
//  Copyright © 2018年 JHnoplan. All rights reserved.
//

#import "DMMineFirstCell.h"

@implementation DMMineFirstCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    _headImage.userInteractionEnabled = YES;
    [_headImage addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(headClick)]];
}
-(void)headClick {
    if (_clickButton) {
        _clickButton(6);
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)buttonClick:(UIButton *)sender {
    if (_clickButton) {
        _clickButton(sender.tag);
    }
}

@end
